import java.util.List;

import util.PGNBasicReader;
import util.PGNWriter;
import board.Game;


public class testReader {
	
	public static void main(String args[]) throws Exception{		
		List<Game> games = PGNBasicReader.read("./testFiles/partidaComentaris.pgn");
		for (Game game: games){
			for(String key: game.getInfo().keySet())
				System.out.println("["+key+ " \"" + game.getInfo().get(key) + "\"]");			
			System.out.println();			
			System.out.print(PGNWriter.getPGN(game));			
		}	
	}
}
